import type { App } from "vue";
import ElementPlus from "element-plus";
import locale from "element-plus/es/locale/lang/zh-cn";
import Cookies from "js-cookie";

const elplus = {
  install(app: App): void {
    // 使用element-plus 并且设置全局的大小
    app.use(ElementPlus, {
      locale: locale,
      // 支持 large、default、small
      size: Cookies.get("size") || "default"
    });
  }
};
export default elplus;
